const mongoose = require("../db/config"),
    Schema = mongoose.Schema;

let room = new Schema({
    name: String,
    members: [{ type: Schema.Types.ObjectId, ref: "user" }],
    chats: [{ type: Schema.Types.ObjectId, ref: "chat" }]
});

module.exports = mongoose.model("room", room);
